#ifndef QTAGSELECTORDIALOG_H
#define QTAGSELECTORDIALOG_H

#include <MDialog>
#include "ui/MTagSelectorDialog.h"
#include "QvernoteAPI.h"
#include <QGraphicsGridLayout>



class QTagSelectorDialog : public MDialog
{
    Q_OBJECT

public:
    QTagSelectorDialog(QGraphicsWidget* parent = 0, const Note& note = Note());
    ~QTagSelectorDialog();

    void addTag(Tag& tag);
    QSizeF sizeHint() const;

public slots:
	void addNewTag();
	void sortName();
	void loadTagsIntoView();

private:
	QGraphicsWidget* m_parent;
    Ui::QTagSelectorDialogClass ui;
    vector<string> m_vTagNames;
    //vector<string> tagGuids;
    QvernoteAPI* m_hEvernote;
    QRectF geom;
    bool	sortOrder;
};

#endif // QTAGSELECTORDIALOG_H
